import request from '@/utils/request'

/**询租户关系及分成关系列表 */
export function list(params) {
  return request({
    url: '/distribution/distributorProportion/list',
    params
  })
}

/**获取商家列表 */
export function getDistributorList(params) {
  return request({
    url: '/distribution/distributorApply/getDistributorList',
    params
  })
}

/**插入新建关系 */
export function insertDistributorProportion(data) {
  return request({
    url: '/distribution/distributorApply/insertDistributorProportion',
    method: 'POST',
    data
  })
}


/**修改关系 */
export function edit(data) {
  return request({
    url: '/distribution/distributorProportion/edit',
    method: 'put',
    data
  })
}

